<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page session="false"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" href="<c:url value='/resources/css/style.css'/>" type="text/css">
</head>
<body>
	<div class='top'>
		<ul>
			<li><a href="<c:url value='/' />">Home</a></li>
			<li><a href="<c:url value="/compare.html" />">Compare</a></li>
			<li style='float:right;'><a href="<c:url value="/j_spring_security_logout" />">Log Out</a></li>
			<li style='float:right;'><a href="<c:url value="/logged.html" />">Profile[${userId}]</a></li>
		</ul>
		<br style='clear: both;'>
	</div>
	<div class='center'>
		[
		<a href="<c:url value="/upload"/>"><b>upload</b></a>
		]
		<p>user with id:${userId} logged! :)</p>
		<p>List of all his fotos:</p>	
		<c:forEach items="${fotos}" var="foto">
			<img src="/Fotka/imageController/${foto.id}.jpg" />
		</c:forEach>
		
		<br />
		<br />
		<p>List of all users:</p>
		<br />
		<p>${users}</p>
	</div>
</body>
</html>
